package com.yxinsur.imc.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yxinsur.imc.business.domain.ImcOrder;
import com.yxinsur.imc.business.domain.ImcTeam;
import com.yxinsur.imc.business.excel.TeamTemplate;
import com.yxinsur.imc.business.form.TeamForm;
import com.yxinsur.imc.business.vo.TeamVo;

import java.util.HashMap;
import java.util.List;

/**
 * 营销区-团队Service接口
 *
 * @author imc
 * @date 2021-03-23
 */
public interface IImcTeamService extends IService<ImcTeam>
{
    /**
     * 查询营销区-团队
     *
     * @param id 营销区-团队ID
     * @return 营销区-团队
     */
    public ImcTeam selectImcTeamById(Long id);

    /**
     * 查询营销区-团队列表
     *
     * @param imcTeam 营销区-团队
     * @return 营销区-团队集合
     */
    public List<TeamVo> selectImcTeamList(TeamForm imcTeam);

    /**
     * 新增营销区-团队
     *
     * @param imcTeam 营销区-团队
     * @return 结果
     */
    public int insertImcTeam(TeamForm imcTeam);

    /**
     * 修改营销区-团队
     *
     * @param imcTeam 营销区-团队
     * @return 结果
     */
    public int updateImcTeam(TeamForm imcTeam);

    /**
     * 批量删除营销区-团队
     *
     * @param ids 需要删除的营销区-团队ID
     * @return 结果
     */
    public int deleteImcTeamByIds(String[] ids);

    /**
     * 删除营销区-团队信息
     *
     * @param id 营销区-团队ID
     * @return 结果
     */
    public int deleteImcTeamById(String id);

    HashMap<String, Object> checkImportTeam(List<TeamTemplate> imcTeamList);

    String importTeam(List<TeamTemplate> imcTeamList, boolean updateSupport, String operName);

    /**
     * 导出查询
     * @param teamForm
     * @return
     */
    List<TeamVo> selectExportImcTeamList(TeamForm teamForm);

    /**
     * 删除营销团队
     * @param id
     * @return
     */
    int deleteTeam(Long id);
}
